﻿<%@ Page Language="C#" MasterPageFile="~/_catalogs/masterpage/Eneta.Learning.master"
    Inherits="Eneta.Portal.Literature.Pages.BookEditPage, Eneta.Portal.Literature,Version=1.0.0.0,Culture=neutral,PublicKeyToken=53d887a3f906cc2b"
    meta:progid="SharePoint.WebPartPage.Document" %>

<%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls"
    Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Register TagPrefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages"
    Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="wssuc" TagName="InputFormSection" Src="/_controltemplates/InputFormSection.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="InputFormControl" Src="/_controltemplates/InputFormControl.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="ButtonSection" Src="/_controltemplates/ButtonSection.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="Toolbar" Src="/_controltemplates/Toolbar.ascx" %>
<%@ Register Assembly="FredCK.FCKeditorV2, Version=2.6.3.22452,Culture=neutral,PublicKeyToken=4f86767c9b519a06"
    Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<asp:Content ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea" ID="LiteratureHeadTitle" runat="server">
    <div class="blog-head">
        <div class="blog-head-txt">
            <h2>
                <asp:Literal ID="titleLabel" runat="server" />
            </h2>
        </div>
    </div>
</asp:Content>
<asp:Content ID="LiteratureContent" ContentPlaceHolderID="PlaceHolderMain" runat="server">
    <style type="text/css">
        .Offices td
        {
            max-width: 80px;
            width: 80px;
        }
        .file-input-area-2
        {
            height: 24px;
            left: 97px;
            position: absolute;
            top: -1px;
            width: 139px;
            float: left;
            font-size: 12px;
            line-height: 15px;
            margin: 0px 8px 0px 0px;
            padding: 1px 4px 2px;
            border: none;
            opacity: 0;
        }
    </style>
    <div class="content-blog-area">
        <div class="tsentraliseeritud">
            <ul class="list">
                <li>Eneta portaali on oodatud kasutajate soovitused tehnoloogiaalastele raamatutele
                    või ajakirjadele. Kui oled lugenud mõnda kasulikku Microsofti käsitlevat raamatut
                    või oskad soovitada mõne hea ajakirja tellimust, siis jaga oma kogemust kommuuniga.</li>
            </ul>
        </div>
        <div class="content-info-area">
            &nbsp;<div class="slide-box warning" runat="server" id="warningBox" style="display: none">
                <div class="slide-box-center">
                    <div class="slide-box-bottom">
                        <!--a class="close" href="#">close</a-->
                        <div>
                            <p>
                                Palun paranda vead, vastavad väljad on märgitud punase raamiga.</p>
                            <ul id="AdditionalErrors" runat="server">
                                <asp:Repeater runat="server" ID="errorsRepeater" EnableViewState="false">
                                    <ItemTemplate>
                                        <li>
                                            <asp:Label runat="server" ID="errorLabel"></asp:Label></li>
                                    </ItemTemplate>
                                </asp:Repeater>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
            <input type="hidden" runat="server" id="fromUrlField" />
            <div class="enter-information">
                <fieldset>
                    <div class="input-holder" style="background-color: white">
                        <div class="info-row" runat="server" id="nameContainer">
                            <div class="error-message" runat="server" id="nameErrorMessage" style="display: none"
                                enableviewstate="false">
                                <span runat="server" id="nameErrorLabel" enableviewstate="false"></span>
                            </div>
                            <div class="title">
                                <h5>
                                    Pealkiri</h5>
                            </div>
                            <div class="error-note" runat="server" id="nameErrorNote">
                                <span>*</span></div>
                            <div class="information-main">
                                <asp:TextBox runat="server" ID="nameField" CssClass="text-go"></asp:TextBox>
                                <a href="/_layouts/enetahandlers/tooltiphandler.ashx?pg=BookEdit&area=Title&width=216"
                                    id="BookTitle" name="Help" class="jTip" style="float: left;">?</a>
                            </div>
                        </div>
                        <div class="info-row foto-inp" runat="server" id="pictureContainer">
                            <div enableviewstate="false" class="error-message" runat="server" id="pictureErrorMessage"
                                style="display: none">
                                <span runat="server" id="pictureErrorLabel" enableviewstate="false"></span>
                            </div>
                            <div class="title">
                                <h5>
                                    Pilt
                                </h5>
                            </div>
                            <div class="error-note" runat="server" id="Div1">
                                <span>*</span></div>
                            <div class="information-main">
                                <asp:FileUpload runat="server" ID="pictureUpload" CssClass="file-input-area"></asp:FileUpload>
                                <div class="box-layout">
                                    <div class="inp-center">
                                        <input class="clear" type="text" value="195x300 px" /></div>
                                </div>
                                <div class="btn-browse">
                                    Browse...
                                </div>
                                <a href="/_layouts/enetahandlers/tooltiphandler.ashx?pg=BookEdit&area=Picture&width=216"
                                    id="BookPicture" name="Help" class="jTip" style="float: right;">?</a>
                                <div id="previewImage" runat="server">
                                    <img src="" id="bookPreviewImage" runat="server" visible="false"/>
                                </div>
                            </div>
                        </div>
                        <div class="info-row" runat="server" id="descriptionContainer">
                            <div enableviewstate="false" class="error-message" runat="server" id="descriptionErrorMessage"
                                style="display: none">
                                <span runat="server" id="descriptionErrorLabel" enableviewstate="false"></span>
                            </div>
                            <div class="title">
                                <h5>
                                    Arvamus</h5>
                            </div>
                            <div class="error-note" runat="server" id="descriptionErrorNote">
                                <span>*</span></div>
                            <div class="information-main">
                                <a href="/_layouts/enetahandlers/tooltiphandler.ashx?pg=BookEdit&area=Opinion&width=216"
                                    id="BookOpinion" name="Help" class="jTip" style="float: right;">?</a>
                                <FCKeditorV2:FCKeditor ID="descriptionField" runat="server" BasePath="/_layouts/fckeditor/">
                                </FCKeditorV2:FCKeditor>
                                <%-- <asp:TextBox runat="server" ID="descriptionField" TextMode="MultiLine" Columns="30" Rows="20" Height="240" /> --%>
                            </div>
                        </div>
                        <div class="info-row" id="additionalInfoContainer" runat="server">
                            <div enableviewstate="false" class="error-message" runat="server" id="additionalInfoErrorMessage"
                                style="display: none">
                                <span runat="server" id="additionalInfoErrorLabel" enableviewstate="false"></span>
                            </div>
                            <div class="title">
                                <h5>
                                    Lisainfo</h5>
                            </div>
                            <div class="error-note" runat="server" id="additionalInfoErrorNote">
                                <span>*</span></div>
                            <div class="information-main">
                                <asp:TextBox runat="server" ID="additionalInfoField" CssClass="text-go" value="http://"></asp:TextBox>
                                <a href="/_layouts/enetahandlers/tooltiphandler.ashx?pg=BookEdit&area=AdditionalInfo&width=216"
                                    id="AddmitionalInfo" name="Help" class="jTip" style="float: left;">?</a>
                            </div>
                        </div>
                        <div class="info-row" id="authorsContainer" runat="server">
                            <div enableviewstate="false" class="error-message" runat="server" id="authorsErrorMessage"
                                style="display: none">
                                <span runat="server" id="authorsErrorLabel" enableviewstate="false"></span>
                            </div>
                            <div class="title">
                                <h5>
                                    Autorid</h5>
                            </div>
                            <div class="error-note" runat="server" id="authorsErrorNote" style="display: none;">
                                <span>*</span></div>
                            <div class="information-main">
                                <asp:TextBox runat="server" ID="authorsField" Text="" CssClass="text-go"></asp:TextBox>
                                <a href="/_layouts/enetahandlers/tooltiphandler.ashx?pg=BookEdit&area=Authors&width=216"
                                    id="BookAuthors" name="Help" class="jTip" style="float: left;">?</a>
                            </div>
                        </div>
                        <div class="info-row" id="publishingYearContainer" runat="server">
                            <div enableviewstate="false" class="error-message" runat="server" id="publishingYearErrorMessage"
                                style="display: none">
                                <span runat="server" id="publishingYearErrorLabel" enableviewstate="false"></span>
                            </div>
                            <div class="title">
                                <h5>
                                    Ilmumisaasta</h5>
                            </div>
                            <div class="error-note" runat="server" id="publishingYearErrorNote" style="display: none;">
                                <span>*</span></div>
                            <div class="information-main">
                                <asp:TextBox runat="server" ID="publishingYearField" CssClass="text-go"></asp:TextBox>
                                <a href="/_layouts/enetahandlers/tooltiphandler.ashx?pg=BookEdit&area=PublishingYear&width=216"
                                    id="BookPublishingYear" name="Help" class="jTip" style="float: left;">?</a>
                            </div>
                        </div>
                        <div class="info-row" id="pageCountContainer" runat="server">
                            <div enableviewstate="false" class="error-message" runat="server" id="pageCountErrorMessage"
                                style="display: none">
                                <span runat="server" id="pageCountErrorLabel" enableviewstate="false"></span>
                            </div>
                            <div class="title">
                                <h5>
                                    Lehekülgi</h5>
                            </div>
                            <div class="error-note" runat="server" id="pageCountErrorNote" style="display: none;">
                                <span>*</span></div>
                            <div class="information-main">
                                <asp:TextBox runat="server" ID="pageCountField" CssClass="text-go"></asp:TextBox>
                                <a href="/_layouts/enetahandlers/tooltiphandler.ashx?pg=BookEdit&area=PageCount&width=216"
                                    id="BookPageCount" name="Help" class="jTip" style="float: left;">?</a>
                            </div>
                        </div>
                        <div class="info-row" id="ISBN10Container" runat="server">
                            <div enableviewstate="false" class="error-message" runat="server" id="ISBN10ErrorMessage"
                                style="display: none">
                                <span runat="server" id="ISBN10ErrorLabel" enableviewstate="false"></span>
                            </div>
                            <div class="title">
                                <h5>
                                    ISBN10</h5>
                            </div>
                            <div class="error-note" runat="server" id="ISBN10ErrorNote" style="display: none;">
                                <span>*</span></div>
                            <div class="information-main">
                                <asp:TextBox runat="server" ID="ISBN10Field" CssClass="text-go"></asp:TextBox>
                                <a href="/_layouts/enetahandlers/tooltiphandler.ashx?pg=BookEdit&area=ISBN10&width=216"
                                    id="BookISBN10" name="Help" class="jTip" style="float: left;">?</a>
                            </div>
                        </div>
                        <div class="info-row" id="ISBN13Container" runat="server">
                            <div enableviewstate="false" class="error-message" runat="server" id="ISBN13ErrorMessage"
                                style="display: none">
                                <span runat="server" id="ISBN13ErrorLabel" enableviewstate="false"></span>
                            </div>
                            <div class="title">
                                <h5>
                                    ISBN13</h5>
                            </div>
                            <div class="error-note" runat="server" id="ISBN13ErrorNote" style="display: none;">
                                <span>*</span></div>
                            <div class="information-main">
                                <asp:TextBox runat="server" ID="ISBN13Field" CssClass="text-go"></asp:TextBox>
                                <a href="/_layouts/enetahandlers/tooltiphandler.ashx?pg=BookEdit&area=ISBN13&width=216"
                                    id="BookISBN13" name="Help" class="jTip" style="float: left;">?</a>
                            </div>
                        </div>
                    </div>
                    <div class="submit">
                        <asp:Button runat="server" ID="saveButton" Text="Salvesta"></asp:Button>
                    </div>
                    <a class="loobu" href="/oppimine/raamatud/" runat="server" id="cancelLink">Loobu</a>
                </fieldset>
            </div>
        </div>

        <script type="text/javascript">
        initCustomFile();
        </script>

    </div>
</asp:Content>
